package com.lyf.design.practice.theory.behavior.strategy;

/**
 * @author LYF
 * @date 2022/6/22
 */
public class Tests {
    public static void main(String[] args) {
        Handler handler = new Handler();

        // 结合门面模式进行判断---何种参数判断采用何种方式策略
        handler.setStrategy(new Strategy1());
        handler.handle();

        handler.setStrategy(new Strategy2());
        handler.handle();


    }
}
